package com.asktgapp.model;

import com.asktgapp.base.BaseItem;
import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

/**
 * time:2018/2/26
 * Create By ZhaoKai
 * Email: dczk@foxmail.com
 * Description:
 */

public class IndustryInfoDetailVO extends BaseItem {


    /**
     * informationDetail : {"viewNum":461,"addTime":"2018.04.17 10:08:00","bannerPic":"http://localhost:8070/jiangong/downloadFile.do?id=50c9e4ae-fa90-46cf-a839-72ba7cc73925","talkNum":0,"informationId":15,"title":"诚邀精英工程师加入剪工","content":"","likeNum":4}
     * informationCommentList : [{"id":109,"informationId":null,"content":"加我","backInfo":null,"addTime":"2018.04.21 18:33:53","userId":9942,"likeNum":0,"commentDiscussList":[{"discussId":null,"discussContent":"测试","discussUserId":null,"discussToUserId":null,"discussLikeNum":null,"discussAddTime":null,"discussUpdateTime":null,"discussStatus":null,"discussTargetId":null,"discussIsRead":null,"username1":"红雨铲车","username2":"糖糖","userPic1":null,"userPic2":null,"likeId":null},{"discussId":null,"discussContent":"测试二","discussUserId":null,"discussToUserId":null,"discussLikeNum":null,"discussAddTime":null,"discussUpdateTime":null,"discussStatus":null,"discussTargetId":null,"discussIsRead":null,"username1":"红雨铲车","username2":"糖糖","userPic1":null,"userPic2":null,"likeId":null}],"username1":"红雨铲车","username2":null,"userPic1":"http://localhost:8070/jiangong/downloadFile.do?id=5e8f9d86-a250-4da0-8496-6799d74ed501","userPic2":null,"likeId":null,"paramUserId":null},{"id":114,"informationId":null,"content":"能加我吗","backInfo":null,"addTime":"2018.04.23 17:10:14","userId":9942,"likeNum":0,"commentDiscussList":[],"username1":"红雨铲车","username2":null,"userPic1":"http://localhost:8070/jiangong/downloadFile.do?id=5e8f9d86-a250-4da0-8496-6799d74ed501","userPic2":null,"likeId":null,"paramUserId":null},{"id":117,"informationId":null,"content":"顶我上去","backInfo":null,"addTime":"2018.04.29 17:47:43","userId":17974,"likeNum":0,"commentDiscussList":[],"username1":"糖糖","username2":null,"userPic1":"http://localhost:8070/jiangong/downloadFile.do?id=6e21d937-4c9c-4502-b52a-7639f370d28e","userPic2":null,"likeId":null,"paramUserId":null},{"id":138,"informationId":null,"content":"我从事挖机制造/配件（三一4年装配和库房技术主管），自己开修理厂7年，可否申请工程师？","backInfo":null,"addTime":"2018.05.17 07:54:59","userId":19569,"likeNum":0,"commentDiscussList":[],"username1":"A康广志","username2":null,"userPic1":"http://localhost:8070/jiangong/downloadFile.do?id=c5ae0d67-a208-497d-be3b-f2cae8a41cdf","userPic2":null,"likeId":null,"paramUserId":null},{"id":154,"informationId":null,"content":"看这个","backInfo":null,"addTime":"2018.06.03 06:09:27","userId":21508,"likeNum":0,"commentDiscussList":[],"username1":"剪工用户","username2":null,"userPic1":null,"userPic2":null,"likeId":null,"paramUserId":null},{"id":165,"informationId":null,"content":"能加我吗","backInfo":null,"addTime":"2018.06.14 08:04:32","userId":22342,"likeNum":0,"commentDiscussList":[],"username1":"挖机1688","username2":null,"userPic1":"e","userPic2":null,"likeId":null,"paramUserId":null}]
     */

    private InformationDetailBean informationDetail;
    private List<InformationCommentListBean> informationCommentList;

    public InformationDetailBean getInformationDetail() {
        return informationDetail;
    }

    public void setInformationDetail(InformationDetailBean informationDetail) {
        this.informationDetail = informationDetail;
    }

    public List<InformationCommentListBean> getInformationCommentList() {
        if (informationCommentList == null) {
            return new ArrayList<>();
        }
        return informationCommentList;
    }

    public void setInformationCommentList(List<InformationCommentListBean> informationCommentList) {
        this.informationCommentList = informationCommentList;
    }

    public static class InformationDetailBean extends BaseItem{
        /**
         * viewNum : 461
         * addTime : 2018.04.17 10:08:00
         * bannerPic : http://localhost:8070/jiangong/downloadFile.do?id=50c9e4ae-fa90-46cf-a839-72ba7cc73925
         * talkNum : 0
         * informationId : 15
         * title : 诚邀精英工程师加入剪工
         * content :
         * likeNum : 4
         */

        private int viewNum;
        private String addTime;
        private String bannerPic;
        private String talkNum;
        private int informationId;
        private String title;
        private String content;
        private int likeNum;
        private String collectId;
        private String followId;
        private String userName;
        private String userPic;
        private String userId;
        private String likeId;

        public String getLikeId() {
            return likeId == null ? "" : likeId;
        }

        public void setLikeId(String likeId) {
            this.likeId = likeId;
        }

        public String getCollectId() {
            return collectId == null ? "" : collectId;
        }

        public void setCollectId(String collectId) {
            this.collectId = collectId;
        }

        public String getFollowId() {
            return followId == null ? "" : followId;
        }

        public void setFollowId(String followId) {
            this.followId = followId;
        }

        public String getUserName() {
            return userName == null ? "剪工" : userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getUserPic() {
            return userPic == null ? "" : userPic;
        }

        public void setUserPic(String userPic) {
            this.userPic = userPic;
        }

        public String getUserId() {
            return userId == null ? "" : userId;
        }

        public void setUserId(String userId) {
            this.userId = userId;
        }

        public int getViewNum() {
            return viewNum;
        }

        public void setViewNum(int viewNum) {
            this.viewNum = viewNum;
        }

        public String getAddTime() {
            return addTime == null ? "" : addTime;
        }

        public void setAddTime(String addTime) {
            this.addTime = addTime;
        }

        public String getBannerPic() {
            return bannerPic == null ? "" : bannerPic;
        }

        public void setBannerPic(String bannerPic) {
            this.bannerPic = bannerPic;
        }

        public String getTalkNum() {
            return talkNum == null ? "0" : talkNum;
        }

        public void setTalkNum(String talkNum) {
            this.talkNum = talkNum;
        }

        public int getInformationId() {
            return informationId;
        }

        public void setInformationId(int informationId) {
            this.informationId = informationId;
        }

        public String getTitle() {
            return title == null ? "" : title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getContent() {
            return content == null ? "" : content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public int getLikeNum() {
            return likeNum;
        }

        public void setLikeNum(int likeNum) {
            this.likeNum = likeNum;
        }
    }

    public static class InformationCommentListBean extends BaseItem{
        /**
         * id : 109
         * informationId : null
         * content : 加我
         * backInfo : null
         * addTime : 2018.04.21 18:33:53
         * userId : 9942
         * likeNum : 0
         * commentDiscussList : [{"discussId":null,"discussContent":"测试","discussUserId":null,"discussToUserId":null,"discussLikeNum":null,"discussAddTime":null,"discussUpdateTime":null,"discussStatus":null,"discussTargetId":null,"discussIsRead":null,"username1":"红雨铲车","username2":"糖糖","userPic1":null,"userPic2":null,"likeId":null},{"discussId":null,"discussContent":"测试二","discussUserId":null,"discussToUserId":null,"discussLikeNum":null,"discussAddTime":null,"discussUpdateTime":null,"discussStatus":null,"discussTargetId":null,"discussIsRead":null,"username1":"红雨铲车","username2":"糖糖","userPic1":null,"userPic2":null,"likeId":null}]
         * username1 : 红雨铲车
         * username2 : null
         * userPic1 : http://localhost:8070/jiangong/downloadFile.do?id=5e8f9d86-a250-4da0-8496-6799d74ed501
         * userPic2 : null
         * likeId : null
         * paramUserId : null
         */


        private boolean header;
        private boolean foot;

        public boolean isFoot() {
            return foot;
        }

        public void setFoot(boolean foot) {
            this.foot = foot;
        }

        private String informationId;
        private String content;
        private String backInfo;
        private String addTime;
        private int userId;
        private int likeNum;
        private String username1;
        private String username2;
        private String userPic1;
        private String userPic2;
        private String likeId;
        private String paramUserId;
        private List<CommentDiscussListBean> commentDiscussList;

        public boolean isHeader() {
            return header;
        }

        public void setHeader(boolean header) {
            this.header = header;
        }

        public String getInformationId() {
            return informationId == null ? "" : informationId;
        }

        public void setInformationId(String informationId) {
            this.informationId = informationId;
        }

        public String getContent() {
            return content == null ? "" : content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getBackInfo() {
            return backInfo == null ? "" : backInfo;
        }

        public void setBackInfo(String backInfo) {
            this.backInfo = backInfo;
        }

        public String getAddTime() {
            return addTime == null ? "" : addTime;
        }

        public void setAddTime(String addTime) {
            this.addTime = addTime;
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public int getLikeNum() {
            return likeNum;
        }

        public void setLikeNum(int likeNum) {
            this.likeNum = likeNum;
        }

        public String getUsername1() {
            return username1 == null ? "" : username1;
        }

        public void setUsername1(String username1) {
            this.username1 = username1;
        }

        public String getUsername2() {
            return username2 == null ? "" : username2;
        }

        public void setUsername2(String username2) {
            this.username2 = username2;
        }

        public String getUserPic1() {
            return userPic1 == null ? "" : userPic1;
        }

        public void setUserPic1(String userPic1) {
            this.userPic1 = userPic1;
        }

        public String getUserPic2() {
            return userPic2 == null ? "" : userPic2;
        }

        public void setUserPic2(String userPic2) {
            this.userPic2 = userPic2;
        }

        public String getLikeId() {
            return likeId == null ? "" : likeId;
        }

        public void setLikeId(String likeId) {
            this.likeId = likeId;
        }

        public String getParamUserId() {
            return paramUserId == null ? "" : paramUserId;
        }

        public void setParamUserId(String paramUserId) {
            this.paramUserId = paramUserId;
        }

        public List<CommentDiscussListBean> getCommentDiscussList() {
            if (commentDiscussList == null) {
                return new ArrayList<>();
            }
            return commentDiscussList;
        }

        public void setCommentDiscussList(List<CommentDiscussListBean> commentDiscussList) {
            this.commentDiscussList = commentDiscussList;
        }
    }
    public static class CommentDiscussListBean  extends BaseItem{
        /**
         * discussId : null
         * discussContent : 测试
         * discussUserId : null
         * discussToUserId : null
         * discussLikeNum : null
         * discussAddTime : null
         * discussUpdateTime : null
         * discussStatus : null
         * discussTargetId : null
         * discussIsRead : null
         * username1 : 红雨铲车
         * username2 : 糖糖
         * userPic1 : null
         * userPic2 : null
         * likeId : null
         */

        private String discussId;
        private String discussContent;
        private String discussUserId;
        private String discussToUserId;
        private String discussLikeNum;
        private String discussAddTime;
        private String discussUpdateTime;
        private String discussStatus;
        private String discussTargetId;
        private String discussIsRead;
        private String username1;
        private String username2;
        private String userPic1;
        private String userPic2;
        private String likeId;

        public String getDiscussId() {
            return discussId == null ? "" : discussId;
        }

        public void setDiscussId(String discussId) {
            this.discussId = discussId;
        }

        public String getDiscussContent() {
            return discussContent == null ? "" : discussContent;
        }

        public void setDiscussContent(String discussContent) {
            this.discussContent = discussContent;
        }

        public String getDiscussUserId() {
            return discussUserId == null ? "" : discussUserId;
        }

        public void setDiscussUserId(String discussUserId) {
            this.discussUserId = discussUserId;
        }

        public String getDiscussToUserId() {
            return discussToUserId == null ? "" : discussToUserId;
        }

        public void setDiscussToUserId(String discussToUserId) {
            this.discussToUserId = discussToUserId;
        }

        public String getDiscussLikeNum() {
            return discussLikeNum == null ? "" : discussLikeNum;
        }

        public void setDiscussLikeNum(String discussLikeNum) {
            this.discussLikeNum = discussLikeNum;
        }

        public String getDiscussAddTime() {
            return discussAddTime == null ? "" : discussAddTime;
        }

        public void setDiscussAddTime(String discussAddTime) {
            this.discussAddTime = discussAddTime;
        }

        public String getDiscussUpdateTime() {
            return discussUpdateTime == null ? "" : discussUpdateTime;
        }

        public void setDiscussUpdateTime(String discussUpdateTime) {
            this.discussUpdateTime = discussUpdateTime;
        }

        public String getDiscussStatus() {
            return discussStatus == null ? "" : discussStatus;
        }

        public void setDiscussStatus(String discussStatus) {
            this.discussStatus = discussStatus;
        }

        public String getDiscussTargetId() {
            return discussTargetId == null ? "" : discussTargetId;
        }

        public void setDiscussTargetId(String discussTargetId) {
            this.discussTargetId = discussTargetId;
        }

        public String getDiscussIsRead() {
            return discussIsRead == null ? "" : discussIsRead;
        }

        public void setDiscussIsRead(String discussIsRead) {
            this.discussIsRead = discussIsRead;
        }

        public String getUsername1() {
            return username1 == null ? "" : username1;
        }

        public void setUsername1(String username1) {
            this.username1 = username1;
        }

        public String getUsername2() {
            return username2 == null ? "" : username2;
        }

        public void setUsername2(String username2) {
            this.username2 = username2;
        }

        public String getUserPic1() {
            return userPic1 == null ? "" : userPic1;
        }

        public void setUserPic1(String userPic1) {
            this.userPic1 = userPic1;
        }

        public String getUserPic2() {
            return userPic2 == null ? "" : userPic2;
        }

        public void setUserPic2(String userPic2) {
            this.userPic2 = userPic2;
        }

        public String getLikeId() {
            return likeId == null ? "" : likeId;
        }

        public void setLikeId(String likeId) {
            this.likeId = likeId;
        }
    }
}
